from fastapi import Request
from blog.models import Article

async def get_article_manager(request: Request):
    return Article if not request.user.is_authenticated else Article.all_objects